home *** CD-ROM | disk | FTP | other *** search
/ Graphics & Sound Program…ng Techniques for the Mac / Graphics and Sound Programming Techniques for the Mac.iso / M&T Graphics & Sound Examples / Symantec Versions / C04 Speech / READ ME Speech
Encoding:
Text File  |  1995-08-31  |  2.1 KB  |  37 lines  |  [TEXT/ttxt]

  1. READ ME Speech
  2.  
  3. __________________________________________________________
  4.  
  5. The Speech Manager relies on the Sound Manager. If you need the Sound Manager, refer to the Chapter 2 READ ME file.
  6.  
  7. __________________________________________________________
  8.  
  9. The Speech Manager extension can be found as a part of System 7.5. If you don't have the Speech Manager extension in your System Folder, and you have System 7.5, search your system disks or CD for it and copy it to your Extensions folder.
  10.  
  11. You'll need the Speech.h header file in order to compile any example that uses the Speech Manager. Look in your development environment's Universal Header files folder to see if there's a version there. If you have Symantec C++ 8.0, there's a copy in a folder on the Symantec CD. Use Find File to search for "Speech.h". Copy this file to your Universal Header files folder. If you have Symantec C++ 7.0, you'll probably need to download a more recent set of the Universal Header files. You can log on to the Internet and go to Apple's ftp.info.apple.com site. Look in the folder:
  12.  
  13. ftp.info.apple.com/Apple.Support.Area/Developer_Services/Tool_Chest/Interfaces
  14.  
  15. for a file named Universal_Interfaces.sit.hqx. Download this file and unstuff it using a utility like StuffIt Expander.
  16.  
  17. __________________________________________________________
  18.  
  19. If you experience any problems with speech on your Mac, add the following to lines of code after any call to either of the two Toolbox Speak functions: SpeakString() or SpeakText(). Chapter 4 provides the details of the SpeechBusy() function.
  20.  
  21.    while ( SpeechBusy() == true )
  22.       ;
  23.  
  24. Your code will then look something like this:
  25.  
  26.    theError = SpeakText( theChannel, (Ptr)(theString + 1), theString[0] );
  27.    if ( theError != noErr )
  28.       ExitToShell();
  29.  
  30.    while ( SpeechBusy() == true )
  31.       ;
  32.  
  33. __________________________________________________________
  34.  
  35. If you don't like what's being said in any of the Chapter 4 programs, you can of course change the text that's spoken. Whether the text is in the code or in a STR# resource, just make the change and recompile.
  36.  
  37.